package com.mzj.saas.mservice.sys.repository;

import com.mzj.saas.mservice.sys.entity.WithdrawUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface WithdrawUserRepository extends PagingAndSortingRepository<WithdrawUser, Long>, JpaSpecificationExecutor<WithdrawUser> {
    WithdrawUser findByOrgIdAndUserId(Long orgId, String userId);

    List<WithdrawUser> findByOrgIdAndStatus(Long orgId, Integer status);

    List<WithdrawUser> findByOrgIdAndStatusAndUserId(Long orgId, Integer status, String userId);
}
